Fix bugs

  1. Loi do xoa subagent
ALTER TABLE `contract` ADD INDEX(`subagent_code`);
ALTER TABLE `contract` ADD CONSTRAINT `contract_fk_6` FOREIGN KEY (`subagent_code`) REFERENCES `tn-crm`.`subagent`(`code`) ON DELETE RESTRICT ON UPDATE RESTRICT;